add PathUtils.samePath
Fix getConstraints