use extra code for ZSH log file name cutting, fix #1832