TrustedHosts update added.

Error detection in some scripts added.

Change-Id: I2b815a1d145096982721b42907871332f966ad5d