Now tells the user to put the directory in as command line arguement, rather than throwing index out of bounds exception