Fixed #4794 issue, setBasePath should working with /

This is a commit to resolve issue #4794