change abspath to path.resolve, to fix windows node issue.

fixes 1249