check that provided argv[1] is a path