[FIXED JENKINS-21772] Only cache CLI credentials in ~/.hudson if it exists

Need to check for `~/.hudson` only, to prevent Jenkins from using that as home, but caching CLI credentials in `~/.jenkins` when the first user logs in.