Fixed tcp command server to expand paths