now omitting filelists sa input
fixed another bug caused by not appending '/' to directories