ROOT now based on cwd

Previous ROOT was hardcoded and did not work on most machines.