make the launch script to support mac