Ensure $PIDS and $LOGS directories are writable

Without these paths being writable, mon will launch, but won't
write it's own pidfile, and mongroup will be unable to communciate
with the mon processes it launches.
Merge pull request #13 from adam12/bug/check_directories_are_writable

Ensure $PIDS and $LOGS directories are writable