Wow, so I tried for about 2 hours to figure this out and finally decided to post a thread on it...5 minutes after posting I stumbled across the solution. Sigh.
Solution was that in the code on the mentioned lines had one extra "." before the "./includes/fonts.inc.php", etc. on lines 111, 112, and 113. This is because I added them before posting because the actual default code has no "." at all.