Correctly calculate relative paths for relocatable packages