Check if packagejson is string on npm load func. close #49