Fixed potential bug: we couldnt use $HOME environment variable