fix for package scanning in directories with spaces and special characters