Fixed typo in Readme usage example

Just fixed a little typo in the readme example snippet.
Should be `if mode == directory then ... end`.

Regards,
Roland.