Go 1.02 compatibility update

In Go 1.1 introduced an os.Mode IsRegular method which is not
worth requiring an update, so it's use have been replaced with
the a less friendly test.