fixed handling paths returned by nlst