$popd
From Valve Developer Community
This will revert the working directory to what it was before the $pushd command was issued.
[edit]
Syntax
$popd
[edit]
Example
$modelname "props/fan.mdl" $cdmaterials "models/props/" $model "Fan" "fan.smd" $pushd ".\new animations\" $sequence "rotate" "rotate.smd" $popd $sequence "idle" "idle.smd"
