Fixed mainfile resolve

Closes:

https://github.com/uber/lint-trap/issues/56
https://github.com/uber/lint-trap/issues/30