Fix Makefile: support Linux, respect env

Works fine for me in Linux, does it work for you in Mac?