fix bash operator

=~ is an undocumented bash comparison operator, use == instead.
use TMPDIR for temporal build directory

using /tmp or equivalent can be faster and safer for this purpose.
update readme too.
Merge branch 'mmm-fixes' of https://github.com/breznak/nupic into mmm-fixes
build: fix variable /tmp

used only once, so make hard-coded
as in comment
build: avoid (potentialy dangerous) rm -rf on $NTA

As the $NTA is supposted to be user specified (messed up with), do NOT
remove all data in this path.
Rather print a warning.
Just lost a night worth of local commits..so that's why.
fix bash operator

=~ is an undocumented bash comparison operator, use == instead.
use TMPDIR for temporal build directory

using /tmp or equivalent can be faster and safer for this purpose.
update readme too.
build: fix variable /tmp

used only once, so make hard-coded
as in comment
build: avoid (potentialy dangerous) rm -rf on $NTA

As the $NTA is supposted to be user specified (messed up with), do NOT
remove all data in this path.
Rather print a warning.
Just lost a night worth of local commits..so that's why.
Merge branch 'mmm-fixes' of https://github.com/breznak/nupic into mmm-fixes

just me messing with git after the $NTA rm bug :P
please ignore.

Conflicts:
	build.sh
rename folder names containing a space

which caused errors eg. in parsing with find, grep etc.
add missing includes <uninstd>

building with gcc
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.8.1/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.1 (GCC)
gcc fix: std::make_pair

fix error reported as :
/home/marek/devel/nupic/nta/math/SparseTensor.hpp:2928:53: error: 'make_pair' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
         return make_pair(getNewZeroIndex(), Float(0));

by adding std:: namespace
gcc fix: resize -> this->resize

as in
/home/marek/devel/nupic/nta/math/TAM.hpp:272:44: error: 'resize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
         resize(winnerIndex+1, winnerIndex+1);
                                            ^

fix from:
https://aur.archlinux.org/packages/si/simulavr/PKGBUILD
gcc fix: setp

/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:151:40: error: 'setp' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
     setp (bufP, bufP + data_.capacity());
                                        ^
/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:151:40: note: declarations in dependent base 'std::basic_streambuf<char>' are not found by unqualified lookup
/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:151:40: note: use 'this->setp' instead
gcc fix: rdbuf

/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:307:23: error: 'rdbuf' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
     rdbuf (&streamBuf_);
                       ^
/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:307:23: note: declarations in dependent base 'std::basic_ios<char>' are not found by unqualified lookup
/home/marek/devel/nupic/nta/ntypes/MemStream.hpp:307:23: note: use 'this->rdbuf' instead
gcc fix: PyArrayObject after struct (is this external?)

as in
https://code.google.com/p/dagpype/issues/attachmentText?id=7&aid=70000000&name=defs.hpp.patch&token=3CYwfDrfF78IH-7FTm94u0k-7KU%3A1370879277822
Merge pull request #36 from breznak/mmm-fixes

Small (linux) build fixes
Merge remote-tracking branch 'origin/dev-master'
Disabling tests on travis until I figure out why env vars aren't picked up.