Improve $LOADED_FEATURES append pattern

```start_with?('json')``` is not correct implementation.
For example, this prevents ```json_spec``` gem from being loaded.
Regular expression which checks if there is a file or folder starting
with json works better.
Do we have this test somewhere else? We do want to verify to_json exists.