added launchapp support for lang in rhel5
cleaned up ldtpd for readability