Redmine#5701: rename bin_dir to dir_bin for consistency with def.cf
Redmine#5701: only set permissions for agents and optional_agents, not all of dir_bin