Get yaml path before changing dirs