use mode instead of permissions for file permissions
added pre and post install script parameter to rpm mojo