Check if provided path is a file