Deployment bug in 1.6.0.1712+

I just upgraded to 1.6.0.1712 yesterday morning. Ever since the upgrade, my deployment script is failing…
I also patched to 1714, some result. See attached logs… success, failure…

It seems the timing of the script is earlier or something? Its like its running before all the files have been extracted.
I run a simple script (Deploy.ps1 attached) that renames a few files based on a deployment variable after the extraction.
ERROR: Rename-Item : Cannot rename because item at ‘C:\Octopus\Deployment\config\envir
2013-05-07 17:59:39 INFO [Deploy Script] ERROR: onment.’ does not exist.

I can validate the files DO EXIST, but maybe there is a second here where there is some overlap, where the files arent present when the script starts to run.

Deploy_Failure.txt (5 KB)

Deploy_Success.txt (7 KB)

Deploy.ps1 (1 KB)

The real issue appears to be that the Deploy.ps1 script is not picking up my $OctopusParameters[“Environment”] variable…

It would be nice if a variable could apply to more than 1 step…