CPA issue #121 resolve- Added validation to check the length of file, scan and working directory