added functionality

now if the user exists and or the script dies, the script will
clean up after itself.
Also added the ability for the script to perform an os check at
hhoovers suggestion on issue #1.