Add chapter 18 exercises (still missing custom nftw)

@rmscarenhas  :disappointed: 
I don't think you should do all this checking for a trailing slash. According to POSIX, `getcwd` should never have a trailing slash, so if you want one, just append it to the returned string.