Make the pkg building aware of relative paths. Also build the tarball if not found