[1085270] Unable to install the RHQ server when calling rhqctl outside of bin directory
A fix for OS/X support.
Also, move debug_msg up to match the way it is in rhqctl.