TO BE TESTED!!! Refactored _dir and _url initialization after the recent change home_url/site_url (@fovoc)
The correct way should be to use WP_CONTENT_DIR and WP_CONTENT_URL because not only WP can be in a subdirectory, but also the wp_content folder can be moved somewhere else.