Fixed server detection of writable application and plugin directories.