fix checkout code for travis