update setup script to use builtin cd command (fix #542)