Respect the directory settings inside the config when checking if they are writable.

Currently the warnings assume you are using the /uploads/ and /themes/ directory, which isn't always the case if you've changed this inside the config.