Added os detection to the start script