properly detect pre-existing lime build, and handle file name escaping