Use sed for temporary file check