Fixed relative package-dir bug