modify automake shell script