I'd just get rid of the if and use this line - I forgot about $HOME.