Allow function loading to work with symbolic links

This changes allows for the loading of function that are symbolic links in the case where the functions are linked to files elsewhere or to work with home management systems like ghar.