Adding change permissions. Fixing XIMDEX_INSTALL.sh