fix #43, delete working dir when build finishes

Working directory will only be deleted if DEBUG is False