Check for interactivity because scp throws an error otherwise