Fixed stale file removal when there are no dirs
build-dep target for preparing build dependencies