create-image.sh: fix check_binary by putting it in common. Allow to run from anywhere.