Fix building dist in non-pkg dir locations