C module: Fix a bunch of path problems with spaces in the filenames
C module: Cause Visual C++ compiler detection to work again

A missing $ expansion prevented the autodetection from working.

Thanks to Kevin Thacker for the fix.