Travis related patch to fix the working path

This patch addresses the incorrect working path and also avoids cloning
anything when it detects Travis.