Fix io/lydia/mkdir/makeWithMode.chpl on mac.

stat call in the bash script was not supported on mac. Instead of figuring out
how to support multiple versions of stat, convert script to python and use its
os.stat function.