Finished up file and directory searching (revamped it all so we don't do manual string searching and instead just use strtok_r).