added shell script to run mongod in the foreground and start the collector