Fix setup.sh and .htaccess for TMX

(issue 199)