fixed bug for wp subfolder installs