Fix sync_images command using bash executable