Update functions.php

Hi, we had to modify this file so that it can follow symlinks in the config directory. We thought maybe it could be useful for others.

Cheers.