Replace magic references to stow directory.