added /usr/local support