Check if path exists before inclusion