prepare for replacing the shell script

@steeve, @gmlewis, @crosbymichael, @tianon