Fix -march detection on newer llvm

This should fix the problem described in https://groups.google.com/d/topic/theano-dev/7J3lnAzQXVA/discussion and at gh-1558