split trailing slash  from the out folder param
updated