遍历变成循环，不然StackTrace好长
Change dirs to StaticRes.* and linux's portable execute.
Change dirs to StaticRes.* and linux's portable execute.