get the correct dir for spec file