Changed method for determining directories to be watched

Now correctly determines all directories configured - not just based off the first entry