site-writable directory permission fix