Fix flawed password file creation for test setup (OMS-531)