updated several functions so that the use of MVPA_output_dir would work