fixed package-lib when calling from foreign folder