MsBuild: Allow template replacement in most file and directory values

Currently only the deployment directory allows templated variables. It would be good if we can provide that ability for all file and directory values where it makes sense.