Show clearer explanation for error
Test some of actual operations
Use pushd/popd instead of cd