add get_userhome and modify history file path to userhome for different user(root, general user)