pass dependencies as array of strings, improved path-to-worker regexp,
terminate worker in vkthread.