Correct regex for to detect new lines correctly.

Regex now should detect new lines correctly, fixes comment for the
explanation of the fix.
Add DeprecatedConstantsCheck.

Checks for STYLESHEETPATH and TEMPLATEPATH.