fixed: SFTP stat didn't set directory/file type causing eg. libdvd to fail on ISOs