Make sure directories exist when creating icons