Add a debug mode via the GLP_DEBUG env var
Fix bug where the repo path was used as the package path