Better handling of flags strings (avoid differences between pre/post shell expansion)