fix ruby path and delete file