Executable timeout and get path for thrift

Executable timeout and get path for thrift