making meta script more cross-platform