Fix test battery: fcm make version string in log

Fix test battery fails if `FCM_HOME` not defined, or if it is not a Git
clone.