allow functions.php to be included many times

apparently laravel workbench requires this
fixes #636
see #649