fix local package installation

Hi,
here is a patch to fix the local package installation.
There was also an issue line 85 using Local for a basename operation.

Olivier