introduce check_access_flags(); command_tag(): ensure W_OK access
introduce strip_tag()
introduce cmd_remove_tag(), get_basename()
implemented -r command