Fix list-jobs error on blank directory #36 . Also added test file