Added cmd argument for setting main module path