Home Directory update in install.sh based on distro

Changes made for using HOME path based on the distribution instead of /home/ec2-user.