edit subprocess call for linux/windows compatibility