fixing bug for mysql user/pwd not being expanded correctly