only allow 404 for empty folders, fix #54