fix the mess in custombootimg script

In theory it should work now, but I'm in the middle of syncing CM sources.