eliminating the $HOME global variable in specs