Fixed wake-up procedure so it examines the classpath