This bug was discussed in issue #537 (closed) It returns an empty file name when we pass the file name as its argument The problem was solved by using the absolute path