Added most checks from 'checkbashisms'. Thanks to Braakman, Rodin and Gilbey!