Ahem. It turns out I'm an idiot who can't spot a typo or for that matter read a log file). I'd set the localfile to be C:\detection_test whilst the directory was in fact named C:\detetion_test.
Once that was corrected everything worked as expected. Regards, Nick
