Load constants file conditionally