Making project directory specifying a little more intelligent