Make compatible with Karma 0.12 changes (works with older and newer versions)