Fix merge regressions

Add `import sys` to bbcleanup
-----------------------------
Used in changeToWorkingDirectory.

Delete test_isTextFile
----------------------
Text file no longer exists.