main: fix deprecated path of require