make ec_file a bit more friendly to binary file names
support testing on r16