Update btmakemetafile to fit refactoring; for some reason uncommitted previously
Rewrote btrename; also forgot to commit