Fixing bad subprocess call