Corrected error message reported for invalid paths