Fix configFile option handling

Was just testing this out and realised it didn't actually work, here's a fix.