fix f5 detection

modern mkstemp requires six Xs in the template
add usage docs