Add a function to safely add a folder to my path.