Patch from Philipp Klaus Krause

1. Check that file exists
2. Display file type when writing (binary or Intel hex)