fix issue with framework dir regexp