Fix $core_exe of deleted executables

Kernel appends '(deleted)' to the /proc/<pid>/exe symlink target, we
have to cut it off.