1. Moved man script to root folder to be able to run scripts from IDE and command line without issues

2. Added checks on stopped, running server before run/stop the server