Fix always return rc of 0 for ls