fixed bugs with depends on PROJECT_DIR constant