only care about branch basename. also we should only be updating the index.html AFTER the deploy directory is created. there's a fix for in-place sed in there too