Improve "git grep" flags handling