Remove unused imports
Only consider specified source paths when generating install identifier