fix executability check of mysqldump

• for open_basedir cases