LOADUI-803 added cd command to linux command string and did some minor refactoring