fix two bugs in sed code configure uses to save command line