determine extended regex argument for sed, can be -E or -r (fix #112)