fixed restart script so that it can run with abs path, also fixed subprocess syntax