Fixing wakeup script not having all necessary enviroment variables