Removed 'readlink -f' for BSD compat