path uses $HOME instead of ~ which didn`t work