check_df: check the return code of 'df' in case the disk is completely full and
we are unable to create a temporary file.