Refactor extension checking to make source easier to read
Do not try to lint check removed files
Fix bug where extension regex was too lenient

This meant files with extensions such as "phpcake" or "cakehtml" were being
treated as OK for a lint check.
Allow phtml and xhtml files to be lint checked