BUG: corrected matlab output file path and added file path for windows