Handles launch from symbolic link

When the binary is launched from a symbolic link the script must
resolve to the linked target to determine correct location of the
subcommands.