Rewrite Makefile to use current directory for build output (also works if cwd is not the source directory)