Remove printf dependency

This PR removes the dependency on `printf`, since it’s only used once in the script, and fewer dependencies are probably preferable. @naoya what do you think? Will this still work as intended?