C,
There are "theoretical" requirements, and there are real world, will it work requirements.
In the big picture, your flow switch will work fine right where it is. Even if there was an additional 12" of straight pipe, I doubt that you'd ever be able to tell the difference in operation.
If you were rebuilding the system, it would make sense to do it right, but I would not replumb just for this one issue.
Thanks,
Jim R.