changes to makefile to avoid sudo where possible