added/corrected yaml depth parameter, moved from version compare to defined() check for json pretty print