Fix regression where WebJobs failed to run when the script file is inside an inner directory.

Also updated the test to actually try to run the WebJob.