restore current directory after sourcing build config