check for working directory writable