Either way works to approximately pi. There is a particular length where it works out exactly to pi which is about 3.2 feet, or about 1 meter. My point was that equations like that remain true regardless of units.
The reason pi squared is approximately g is that the L required for a pendulum of 2 seconds period is approximately 1 meter.