tidied up project directory name matching