[TIMOB-16004] Fixed relative paths for commonjs __dirname