[BASH] Add function add_MANPATH_if_exists.

Signed-off-by: Wei-Chung Wen <morisato3711@gmail.com>