[#2042] better environment detection within irods_setup.pl
[#2044] newlines should be in newly created .irodsEnv file