Fix "Attempted relative import in non-package" exception.