Fix #270 - pathCheck should handle undefined paths

umm well its two issues...not sure how to name it :P