Adding careful handling of long filenames on Windows

Had to create a special function to deal with long path names on
Windows.
Also fixed an issue re opening the correct speed files when only
r_short_name or r_long_name provided.