project: fix dir handling