Determining if it is a file or a command