datajam: move root directory check up to the "global" level