Remove all references to HOME and replace with TARGET