Use output dir for empty packages to be hermetic (#3098)

With an empty lib reproducibility test
2 files changed