Export setting permissions to bin/hrm_user_manager_old.

The direct calls to chmod() in the PHP code are now delegated to the bin/hrm_user_manager_old script iff $change_ownership is set to true in the configuration files.