Even better: make the script work with local paths as well.
Then you can put
alias cd='sshcd'
in your .bashrc, and you won't have to distinguish between local and remote paths ever again.