Make sure that the scratch dirs have rwx permissions before we try