implement "..." wildcard for packages and paths

Was wondering why this did not work. Fixes #58
shouldn't it be -4 here?