Fix build: look for ECM first

Authored by ltoscano on Sep 26 2018, 11:26 AM.