Simplified from prev. commit, just set path to empty string if there is no path.