Fixed "bad argument" error when running init script