chomp the secret, as read from the file. remove trailing CR and LF bytes.
remove few tests for variables that never existed (merge error)