Updated argument handling for ls