fix filemode test for different platforms
fix filemode test for different platforms

cf-routing/cli,mcintyred/cli,mcintyred/cli,evanfarrar/cli,simonleung8/cli,hyenaspots/cli,hyenaspots/cli,fujitsu-cf/cli,evanfarrar/cli,markstgodard/cli,mcintyred/cli,cf-routing/cli,cf-routing/cli,hyenaspots/cli,simonleung8/cli,hyenaspots/cli,cf-routing/cli,markstgodard/cli,fujitsu-cf/cli,markstgodard/cli,fujitsu-cf/cli,simonleung8/cli,mcintyred/cli,evanfarrar/cli,evanfarrar/cli,markstgodard/cli