Removing realpath from root calculations