add condition in isRemotePath

I want to add the evaluation of the path beginning with '/'.