Preflight rake task added

* Permissions are checked and corrected before installation.
* Rakefile cleaned up and standardized, verbose mode disabled.