Should just be able to call `autoconf` without specifying the full argument. Also, use backticks (`) instead of system and `Pathname.write` to write the output to configure.