replaced instances of ~/ with $(HOME) in Makefiles