Added root check to append 'root' to the prompt.