Better writable directories functionality

Have improved writable dirs functionality giving a few options (acl, chmod and chmod_bad).

I also fixed the type of writeable to writable. Naturally this could mess with people's scripts but as this is a development version it should be possible to give them a heads up when it becomes stable.