resolving paths in build, fix clean