Added OS check for executing different pdf command