cleanup.
Now resilient to leading or trailing whitespaces in repo-dirs.