fixed: wrong current_path in multistage mode