added testme for detection to work
profile.d script needs to be executable
apparently echo doesn't work with heredocs in bash