fixed treatment of an existing source version of gtsam

(the cmake scripts gtsam creates in devel space at least are all capital!)

I'm not sure if that would break on other installations. Could somebody check, please?