this add compatibility for some BSD systems which don't have -f to readlink while retaining compatibility with GNU systems without a readlink command Thanks: Konstantinos Koukopoulos <kouk@transifex.com>
2f99496