Resolve returns the absolute path of the running executable with
symlinks resolved, so it names the real file. When the symlinks cannot be
resolved, the unresolved path is returned. It returns an error only when
the operating system cannot report the executable path.