Updated the OptionsParser so that it would recognise the file extension change