Made collectPaths an exported function -> CollectPaths.
Fixes issue #1. New directories are scanned and all subdirectories are watched.

Everytime a directory is created, it is scanned for subdirectories. In cases like `mkdir -p`
usage, this ensures that all subdirectories get watched.
Now exporting IndexOf function.