bug fixes and directory creation in WP download