Support for common js module resolving and creating dirs for jsOutputFile.