BUGFIX: Fixed long-standing bug causing an error message about loadRcDir being undefined