Changed to using preg_replace for finding first instance of workspace in destination path when JIT is enabled... this way, if a folder deeper in the chain has workspace as it's name it wont get replaced as it would with str_replace.