Added sourceMapRoot option, fixed some path issues.

Needs testing!