Fixed output file check for instances where a seperate output directory was chosen