Fixed a path resolve issue when using the module in another project