first implementation of option -x
fixed string handling bug with suffix-less files in command_tag