Added dependencies and fixes for wordpress running in subdir