Use nocasematch instead of ${x,,} bash4 notation
Declare _xssh_timestamp function only once