[master/rhel7] Only move INSTALL_TREE when it is mounted (#888196)