got rid of linux specific commands
updated version
tweaked for multi os