Makefile generator fixes

Hi Juan,
following commits fix the issues in the makefile generator script: http://pixinsight.com/forum/index.php?topic=7914.0

The first commit fixes the problem with special characters in regular expressions
The second commit fixes the problem with debug makefile creation on Linux only

Klaus