[COOK-3727] - Jenkins minitests not passing

* Enforce directory permissions for the home_dir, plugins_dir, ssh_dir and log_dir.
* Make directory permissions an attribute
* If you're installing package this will modify your directories permissions from the ones set by the package.