install: fix bug when "-s" argument is supplied

(integrated from master branch change 503418e by Todd Whiteman <toddw@activestate.com>)