Fix build scripts on travis