* and once more: updated premake.sh (fixed getting the logical cpu count on osx/linux/*bsd and fixed shell compat issues)