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