Add input validation for destdir, srcdir and files.