fixed issue with checking for packages vs globs