fix CFPATH detection

finally got annoyed enough to fix this