changing command construction way using join

Old string append is unefficient way of contructing a command line, I changed it to use string's join method.
Merge pull request #1 from demonkit/master

changing string contruction way