make rootdir replacement global

I noticed that in learnyounode's My First I/O module, only the first `{rootdir:...}` token was replaced. 

> Documentation on `Buffer`s can be found by pointing your browser here:
>   {rootdir:/node_apidoc/buffer.html}

I worked the fault back to this line where only the first instance was being replaced.