Don't patch compressed or image files
fix syntax error