Makes dir writable when uploading directory/chroot
Adds test for make_dir_writable()
Also adds u+x to parents in make_dir_writable()