add try to load main script from npm task