[Server] Utils: Optimize getSelfExeDir() by using memchr().

Use memrchr() to find path separator '/'.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>