Added check for wordpress directory.