Some fixes

Thanks for the script. Fixed an issue where current directory was getting monitored twice.