Updated README.md
Added checks for input and output directories.