Fixes a number of issues.

Broken Links:
I'm not sure if this was the best way to go, but it works regardless of what the base directory is called. The only other way I can think of doing this is to chdir() each file to the base directory and then include from that base path (which may be the simpler alternative for a lot of local file includes in deeply nested directories).