Update the raw image script to work with Linux.