Added error checking for ROOT_PATH environmental variable.