Ensure directory is created before wget