expr error fix in Mint Script
expr error fix in Ubuntu 12.10 Script
Merge after changing expr history a bit