Checking if it is a filename or a path (relative/absolute)