fix runAsModule detection with regexp
fix indentation
remove if(!runAsModule) - that was stupid!
indentation on comment
Merge pull request #1 from gogamoga/runAsModule

fix run as module detection