Some fixes

Changed file Regex to ignore casing.
Fixed to verify if hostname was supplied.
Fixed handling of credential conflict error.