make launch script work both on Darwin and Linux