Update dism.rb

detect dism path based on architecture instead of environment vars