fixed --onefolder option