Fix all mode flag handling for phar building
Prepare release 1.10.2