OSX packaging: once again try to make osascript call reliable

(cherry picked from commit 39cdfdeaa03b8b4b1ca9768c4ff3ae15d2a28363)
OSX: make afplay default audio player (no aplay here)

(cherry picked from commit 1a83f28ae5059904440e1dc50218cc2c175418ee)