added OS (Win/Unix) dependent parameterization of call to perl