Fix smartwd script and update PS1 in bashrc.common