rewrite cellar names before prefix names

the cellar path may overlap with the prefix, so if we replace the prefix
first we will end up with things like "@@PREFIX@@/Cellar" instead of
"@@CELLAR@@"
use placeholders for prefix and cellar in relocatable bottles
do relocation check while preparing bottle
wip
wip