Modifies the libffi step to cd back to the original build dir.