start script adapted to linux for detached