Remove duplicated code and fix travis

No idea why all the travis builds didn't break sooner, only numpy < 1.8
apperently forgives missing atlas at compilation time? don't know.
six errors are a red herring.

closes #6006