Checks & restores cache directory on the go (#4)

1. I wrapped the `realiseDirectory()` into a `file_exists()` condition to avoid reading the `config` file everytime the directory check occurs.
2. Altered the error message of restoration fail.
3. Sorry for the empty lines auto trim throughout the source file.

Not sure if these changes are ok / optimal as they are. But tested and it works.