fixed some things that the cwd change broke

This shows that if serve from a different directory then you run on,
your files will return the wrong path for process.cwd().