Fix a bug with checking if paths are writable
v0.031

          Fixed a bug with checking if paths are writable.