Fixes warning about path.exists