Setup missing directories and harden file permissions

The file permission of files in the `bin` directory is changed to 0750 because `harden_permission` removes all privileges from others.