Fix miner startup script