Fix #270 - pathCheck should handle undefined paths