Added sanity check that project dir is valid on startup