Added an error message when directories (like cache/) could not be writt...

Added an error message when directories (like cache/) could not be written to during installation.

The cache/ dir not being writeable broke my installation and I had no clue why it was broken until I added this debug information.