express redirect compatibility

avoid breaking changes for redirect when using express v3 vs v4