CQM-153 Improved getting absolute path on BSDs

* Now readlink isn't used at all (doesn't work for non-existing files)
* Only using dirname/basename/pwd for that
* User will see only the passed filename and specified/current relative
  directory (not effective one resulting in symbolic link)