Issue 137: Fixed broken current command. Platform specific hack for solaris now used gnu sed instead of default sed. Also check for gnu sed on installation.