using perl for platform-neutral stat

closes #83