change get local dir path for __dirname