Bz1095508 - MacOS - rhq-cli.sh script command fails with 'readlink: illegal option -- f

This fixes the mac OS/X readline issue so that the cli can run on OS/X now. Ready for review. Script gurus feel free to refactor.