#189 Check read/write permissions before running jobs

Implement this feature of #189