Revert "use home dir if ls path is empty"

This reverts commit dea7023b6486f56d47fea63e8dd53be2673050cf.