rewind file if we dont find the magic number