Check if there are command line parameters
Add the search path to the file opening code