Fixes #40. Grammar got exception if file was not in a source dir of a project i think. It finds project for a file properly now.