Fixes bug in popd_q

Turns out giving popd any args at all causes it just to manipulate its dir stack, and not actually change the working directory at all. The more you know!