Update emulator.rb

Fix no emulator window shows in MacOS 10.9
Merge pull request #536 from saga64/master

Update emulator.rb (Fix no emulator window shows in MacOS 10.9 with Virtualbox 4.3, when $DISPLAY variable is empty)