Add path to realpath for debian, redhat and freebsd