`write_exec_script` can take a list, so let's try `bin.write_exec_script Dir["#{libexec}/bin/*"]` and see if that works.