Improved description and added path sanity check