In ghci, catch IO exceptions when calling canonicalizePath