(bug 55583) Do not create user-config if stdin is not a tty

Change-Id: I67d77458e13a6a2cc5a33095b0187d0e6cbe5d10
Merge "(bug 55583) Do not create user-config if stdin is not a tty"