Removed unecessary select file logic

Cleaned up the select file logic so it wasn't unecessarily creating a
file stream of the selected file.