Fix for cross-server implementation

Added function to find wp root without having any wp functions loaded.