Improve handling of unsupported files/folders (#49)