command prompt handling
adapted for RedHat build