Tests for PROFILE detection

Baby steps towards a tested install script, take 2:

This PR tests how the PROFILE is detected and simplifies conditions is the install function.
After a quick disappointing Googling, I find myself forced to ask you to elaborate on "most shells", just for the sake of curiosity.