Clean up of parse split function, removed changes to curr_dir from it