Removing platform-specific code.

Extracting it to dementor:ProjectFile.  This is to partially address #2.