Minor Fixes

 * Only run the first job in the directory
 * Check for new files on each loop
 * Only sleep when there is nothing to do