There's no need for runcwd as initial_cwd is already defined somewhere. Add Filename.analyze_program_name function to make the clearer.