Replaced hardcoded home directory with home variable