[#1823] Fix play.exceptions.CompilationException

[lighthouse #1823](play.lighthouseapp.com/projects/57987/tickets/1823)
Yes I used the project sample attached to the issue, I run also the ApplicationTest as a Junit Test. The function `matchName` just do waht you said : directory "must be cheched as well by its canonical name".
So I think my change are ok, aren't they?