don't try to set the mode of /dev/null

for some reason the mode of /dev/null is r+ on my machine at least, and trying to change it to 'w' blows up
https://github.com/toy/image_optim/issues/8