Use readlink -f instead of realpath

Signed-off-by: Martin Lucina <martin@lucina.net>