Allow to pass milestone by environment variable

This commit is cherry-picked from gh-15 and allows to pass a milestone by environment variable instead of relying on the input version number