Tweak paths to work with nodejs. Also misc. stuff.