Fixed upstream flash detection
Merge pull request #908 from seandst/sorry-i-broke-flash-upstream

Fixed upstream flash detection