added require for libffi and changed the working dir for exec