thanks I did not thought of that. I'll add a check for the same logfile name issue. 
WIth 'different names that end up with the same slug', do you mean that different logfiles have the same
output inside ? I don't have any solution for that, as even if the same command is put twice, the logfile can be different
in case they have side effect. Note however that one command can only have a single log.