add folder to the path if they exist