Use pushd instead of two cds.