fix lint scripts: ignore attic directories; properly handle spaces in filenames
fix lint warnings