Add support for different path types in argument

Polyglot now checks if the file was given as a file name, an absolute
path or a relative path and acts accordingly