[#1823] Fix play.exceptions.CompilationException

[lighthouse #1823](play.lighthouseapp.com/projects/57987/tickets/1823)
Yes but as I said there was still problem with your PR, your PR only work with `play precompile`.
example with name = controllers.Application, it was sometimes detect as a directory on windows.