Besides, dealing with tmp files has multiple points of possible failure, all of which need to be handled gracefully. Just passing a string to Module doesn't have all these potential failures.