Apply `cd` before using `pwd` on RHS