Fixed #5317 (failed to load std.cfg)