Improve check_lineterm.php

Remove code duplication; ignore '.git' directory and remove CVS
reference; improve output.