Allow to have non-json files in the directory

This is more flexible that the current state, where prmd crash if anything not json is found.