mkdir and rmdir errors + dir writable checks