Changed install.sh

Adapted functions to allow for appending to all profile files found, not just the first