Move platform check to exports.zsh from separate file