Alters the shell invocation at the end of the script (see: http://unix.stackexchange.com/questions/14885/how-to-reset-a-shell-environment)