Set default gcc version at startup 

like retropie 1.x
Fixing mame4all-pi permissions to allow world-writeable subdirectories
Merge pull request #355 from fedoracooper/master

Fixing mame4all-pi permissions to allow config changes to be saved
cosmetic - script files contain mix of spaces/tabs indentation and trailing whitespace. convert tabs->spaces and strip trailing whitespace
Merge pull request #356 from exobuzz/cosmetic

cosmetic - script files contain mix of spaces/tabs indentation and trail...
Added Megadrive emulator DGEN
simplify copying of python scripts for esconfig
use loop for /etc/modules checking
de-duplicate / make function for checking if dir exists and deleting.
send OPT_FLAGS directly to make - no need to create a patchfile/patch etc
we can do a single chown for all roms/esconfig files
de-duplicate mame4all folder creation / ownership (chown rather than making files world writable)
test if we are in a chroot and set __chroot accordingly and identify as arm6l - skip memory check if in chroot environment
support setting MAKEFLAGS - for example in a chroot to build in parallel with -jX
use chown $user:$user rather than chown/chgrp
no need to keep switching around default gcc versions - just pass the correct environment variable directly to make/configure
sed in place for advancemame changes
no need to split sed onto multiple lines (and it makes it no more readable in this case imho)
Merge pull request #360 from exobuzz/chroot_env

Chroot env
Merge pull request #359 from exobuzz/de-duplication

De duplication
Disabled RetroArch Hotkey per default