check_file_exists function

Function to check if a file exists. Calls stop if the file is absent