updated install script, should work on linux too (minus the open part)