Correctly get full path under FreeBSD