Add entrypoint detection of command vs mongod args

Fixes #3