Replace the HOME variable with PREFIX