addToPath function

Add a directory to PATH temporarily