Modified Install script to check root and get home directory