Check for path before trying it