fix out-of-order reference to cwd in sh prompt