[LIBS] Fixing strrchr function for target character at begining of string

Signed-off-by: Abhishek Shrivastav <abhishek.shrivastav24@gmail.com>