Fix generate-changelog rule when building from outside of the source repository