Fix wrong conditional statement

As WORK_DIR was created, lines fixed was not working.