added fallback lookup for $HOME