Patches for check_oracle: use user's .bash_profile (sudo env  problem) [sf#3400197] [#1122]