Go 1.0 compabitible syntax

Replace Go 1.1 introduced os.Mode IsRegular method with older syntax
to maintain compatibility with older compiler.