Try to move a file to a known directory if it is locked

Can that use %HOME% instead of d:\home? I think with Azure pack scenarios, this could be on a different drive.