Fixed mistake in creation of credentials properties file.

Was adding ".properties" extension, which resulted in "Vendor..properties"
files.

Made writing of credentials file happen every time Autoindigestion runs, to
make sure the credentials file has the latest username and password.