BUG: make packaging work outside git repo