truncate long file paths in firmware uploader