Fix running Perforce commands with -G.

The -G parameter was being passed after the arguments to p4, rather than
right after p4, which is required. This reorders things to pass -G
first.