Updated install script to use a better method for detecting the user.