use home dir if ls path is empty