make the detection logic for GPSim easier to understand and more robust

fixes a problem when GPSIM_FOUND and NO_GPSIM gets both defined in a specific situation
Merge pull request #17 from ktechlab/fix-gpsim-detection

make the detection logic for GPSim easier to understand and more robust