Adds a check for the existence of the grammarPath

This addresses issue #3