Added a subroutine to return intermediate filename for preprocessed results
Added test to check for intermediate preprocessed results in tmp directory