fix build from $projdir directly