Fixed fileMonitoring to work with multiple jobs