Fix tcos-standalone start, create pid file