I think I found what was happening after lots of trial-and-error!
Apparently job.PathDependencies needed the full path /home/username/filename not just ~/filename (that I was using)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!