fix the bug of switch to root can't find the script: set the absolute path