FIX: do not use realpath command