Base: Fix caching error on Windows Phone

Also, fix run-once program submission on Windows Phone