Fix of bugs, that've been founded by pmwkaa.
Also, creating tc_buf for automatic allocating, storing and resizing of `command` string