Fixed permissions for executables.
Refactoring in mplayer listener.